package com.quan.feign;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.quan.common.base.bean.ResultBean;
import com.quan.system.entity.SystemMessage;

@Component
public class SystemMessageServiceFallback implements SystemMessageService {

	private Logger logger = LoggerFactory.getLogger(this.getClass());
	/**
	 * 远程调用失败，将会回调该方法
	 * @param account 账号
	 * @return 自定义返回信息
	 */
	@Override
	public ResultBean add(SystemMessage entity) {
		logger.error("调用{}异常{}", "findByAccount", entity);
		return ResultBean.failure("服务不可用，获取用户信息");
	}

	
}
